package org.jeecg.modules.hc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.modules.hc.enums.HcAfterSalesStateEnum;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * @Description: 售后
 * @Author: jeecg-boot
 * @Date: 2022-12-13
 * @Version: V1.0
 */
@Data
@TableName("hc_after_sales")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "hc_after_sales对象", description = "售后")
public class HcAfterSales implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    @ApiModelProperty(value = "查询开始时间")
    private String timeBegin;

    @TableField(exist = false)
    @ApiModelProperty(value = "查询结束时间")
    private String timeEnd;

    @TableField(exist = false)
    @ApiModelProperty(value = "查询开始时间")
    private String timeBegin1;

    @TableField(exist = false)
    @ApiModelProperty(value = "查询结束时间")
    private String timeEnd1;

    @TableField(exist = false)
    @ApiModelProperty(value = "订单详情列表")
    private List<HcOrderDetailed> hcOrderDetailedList;

    @TableField(exist = false)
    @ApiModelProperty(value = "门店名称")
    private java.lang.String storeName;

    @TableField(exist = false)
    @ApiModelProperty(value = "消费金额")
    private java.math.BigDecimal totalPrice;

    @TableField(exist = false)
    @ApiModelProperty(value = "菜品名称")
    private java.lang.String nameDishes;

    @ApiModelProperty("投诉次数")
    @TableField(exist = false)
    private Long complaintCount;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /**
     * 用户ID
     */
    @Excel(name = "用户ID", width = 15)
    @ApiModelProperty(value = "用户ID")
    private java.lang.String userId;
    /**
     * 商户ID
     */
    @Excel(name = "商户ID", width = 15)
    @ApiModelProperty(value = "商户ID")
    private java.lang.String merchantId;
    /**
     * 商家订单ID
     */
    @Excel(name = "商家订单ID", width = 15)
    @ApiModelProperty(value = "商家订单ID")
    @NotBlank(message = "商家订单ID不能为空")
    private java.lang.String orderMerchantId;

    @TableField(exist = false)
    private HcOrderMerchant hcOrderMerchant;

    /**
     * 餐品问题
     */
    @Excel(name = "餐品问题", width = 15)
    @ApiModelProperty(value = "餐品问题")
    @NotBlank(message = "餐品问题不能为空")
    private java.lang.String foodProblems;
    /**
     * 图片
     */
    @Excel(name = "图片", width = 15)
    @ApiModelProperty(value = "图片")
    @NotBlank(message = "图片不能为空")
    private java.lang.String picture;
    /**
     * 意见反馈
     */
    @Excel(name = "意见反馈", width = 15)
    @ApiModelProperty(value = "意见反馈")
    private java.lang.String feedback;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    private HcAfterSalesStateEnum state;
    /**
     * 处理时间
     */
    @Excel(name = "处理时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "处理时间")
    private java.util.Date processingTime;
    /**
     * 扣款备注
     */
    @Excel(name = "扣款备注", width = 15)
    @ApiModelProperty(value = "扣款备注")
    private java.lang.String deductionRemarks;
    /**
     * 驳回原因
     */
    @Excel(name = "驳回原因", width = 15)
    @ApiModelProperty(value = "驳回原因")
    private java.lang.String reasonRejection;
    /**
     * 退款金额
     */
    @Excel(name = "退款金额", width = 15)
    @ApiModelProperty(value = "退款金额")
    private java.math.BigDecimal refundAmount;
    /**
     * 扣除商家金额
     */
    @Excel(name = "扣除商家金额", width = 15)
    @ApiModelProperty(value = "扣除商家金额")
    private java.math.BigDecimal deductMerchantAmount;
    /**
     * 电话
     */
    @Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "电话")
    @TableField(exist = false)
    private String phone;
    /**
     * 是否企业售后
     */
    @Excel(name = "企业id", width = 15)
    @ApiModelProperty(value = "企业id")
    @TableField(exist = false)
    private String companyId;
}
